package interfaces;

/**
 * Created on 2018/12/16.
 */
public class FuctionalInterfaceMain {
    public static void main(String[] args) {
        ITrade checker = t -> t.equalsIgnoreCase("123") ? "passed" : "retry";
        ITrade aTrade = t -> t.concat("aa");
        System.out.println(checker.check("123"));
        System.out.println(aTrade.check("123"));
    }
}
